package kr.co.icebird.swt.app.ch4;

import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;

public class Ch4_Composite extends Ch4_MouseKey {

	
	public Ch4_Composite(Composite parent){
		super(parent);
		
		Button launch = new Button(this, SWT.PUSH);
		launch.setText("Launch");
		launch.setLocation(40, 120);
		launch.pack();
		
		launch.addMouseListener(new MouseAdapter() {
			public void mouseDown(MouseEvent e){
				Ch4_Contributions sw = new Ch4_Contributions();
				sw.open();
			}
		});
	}
}
